﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/MasterPage.master" AutoEventWireup="true"
    CodeFile="ReprotHeaderView.aspx.cs" Inherits="PlanMangement_PlanView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../Themes/Js/checkItem.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TabTitle" runat="Server">
    <%=Resources.Resource.ReprotHeaderView%><%--报表浏览--%>(ForcastTEEP)
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <div style="width: 100%;">
        <div id="MainContent_Panel1" class="queryDiv1">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="divFrameHead">
                       <span class="querytextCss">
                    <%=Resources.Resource.Query%><%--查询条件--%></span>
                    </td>
                </tr>
                <tr>
                    <td class="submitborder" style="padding-top: 15px; padding-bottom: 15px;">
                        <table style="margin-bottom: 10px;" width="95%" border="0" align="center" cellpadding="0"
                            cellspacing="0">
                            <tr>
                                <td class="submitborder4">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="submitFieldbg">
                                                BU
                                            </td>
                                            <td align="center">
                                                <asp:TextBox ID="txt_buName" runat="server" Width="80px"></asp:TextBox>
                                                &nbsp;
                                            </td>
                                            <td class="submitFieldbg">
                                               Version
                                            </td>
                                            <td align="center">
                                                <IMC:PUVersionDropDownList ID="dll_PUVersion" runat="server">
                            </IMC:PUVersionDropDownList>
                                                &nbsp;
                                            </td>
                                            <td class="submitFieldbg">
                                                <input type="text" id="txtEffectiveTimeStart" runat="server" class="Wdate" style="width: 80px"
                                onfocus="WdatePicker({isShowClear:false,dateFmt:'yyyy-MM-dd'})" visible="false" />
                                            </td>
                                            <td align="center">
                                               <input type="text" id="txtEffectiveTimeEnd" runat="server" class="Wdate" style="width: 80px"
                                onfocus="WdatePicker({isShowClear:false,dateFmt:'yyyy-MM-dd'})" visible="false" />
                                                &nbsp;
                                            </td>
                                             <td class="submitFieldbg">
                                             <%=Resources.Resource.Version%><%--版本--%>
                                            </td>
                                            <td class="submitFieldbg">
                                              <IMC:VersionDropDown ID="dll_PlanVersion" runat="server">
                            </IMC:VersionDropDown>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                       <asp:Button ID="Button1" runat="server" Text="<%$Resources:Resource, btnEnquiry%>" /><%-- 查 询 --%>
                    </td>
                </tr>
            </table>
        </div>
        <div class="GridDivCss">
            <IMC:GridView ID="gvPlanView" runat="server" AllowPaging="true" AllowSorting="true"
                PageSize="10" DataSourceID="reportDataSource" OnRowDataBound="gvPlanView_RowDataBound">
                <Columns>
                    <%--产能预警--%>
                    <asp:TemplateField HeaderText="<%$Resources:Resource,CapacityOfEarlyWarning %>" ItemStyle-HorizontalAlign="Center"
                        HeaderStyle-Width="20%">
                        <ItemTemplate>
                            &nbsp;<asp:Label ID="lbl_xSVMaterial" runat="server" Text='<%#Eval("Discrib")%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Business Unit" ItemStyle-HorizontalAlign="Center"
                        HeaderStyle-Width="20%">
                        <ItemTemplate>
                            &nbsp;
                            <asp:LinkButton ID="lbl_BusinessUnit" runat="server" Text='<%#Eval("BU")%>' PostBackUrl="~/PlanMangement/PlanView.aspx"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <%--查看--%>
                    <asp:TemplateField HeaderText="<%$Resources:Resource,View %>" ItemStyle-HorizontalAlign="Center"
                        HeaderStyle-Width="20%">
                        <ItemTemplate>
                            &nbsp;
                            <asp:LinkButton ID="lbtn_View" runat="server"><%=Resources.Resource.DataReport %></asp:LinkButton><%--数据报表--%>
                            &nbsp;
                            <asp:LinkButton ID="lbtn_Chart" runat="server"><%=Resources.Resource.IconReport %></asp:LinkButton><%--图示报表--%>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </IMC:GridView>
            <asp:ObjectDataSource ID="reportDataSource" runat="server" TypeName="ReportDataSource"
                SelectMethod="Select">
                <SelectParameters>
                    <asp:ControlParameter ControlID="txt_buName" Name="buname" PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="txtEffectiveTimeStart" Name="start" PropertyName="Value"
                        Type="DateTime" />
                    <asp:ControlParameter ControlID="txtEffectiveTimeEnd" Name="end" PropertyName="Value"
                        Type="DateTime" DefaultValue="2999-12-31" />
                    <asp:ControlParameter ControlID="dll_PlanVersion" Name="PlanVersion" PropertyName="Text"
                        Type="String" />
                    <asp:ControlParameter ControlID="dll_PUVersion" Name="PUVersion" PropertyName="Text"
                        Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </div>
    </div>
</asp:Content>
